package com.wan37.logic.tradingshop.domain.vo;

import com.wan37.logic.tradingshop.domain.entity.TradingShopRecordDO;
import com.wan37.protobuf.message.client2server.game.GameTradingShop;

/**
 * @author : luoyong
 * @date : 2020-08-05 10:44
 **/
public class TradingShopRecordVO {
    private String recordId;
    private String tradingShopId;
    private String backpackId;
    private String userId;
    private String buyId;
    private long ingot;
    private long createTime;

    public TradingShopRecordVO(){}

    public TradingShopRecordVO(TradingShopRecordDO tradingShopRecordDO){
        this.ingot = tradingShopRecordDO.getIngot();
        this.buyId = tradingShopRecordDO.getBuyId();
        this.backpackId = tradingShopRecordDO.getBackpackId();
        this.recordId = tradingShopRecordDO.getRecordId();
        this.tradingShopId = tradingShopRecordDO.getTradingShopId();
        this.userId = tradingShopRecordDO.getUserId();
        this.createTime = tradingShopRecordDO.getCreateTime();
    }

    public TradingShopRecordVO(GameTradingShop.TradingShopRecord tradingShopRecord){
        this.ingot = tradingShopRecord.getIngot();
        this.buyId = tradingShopRecord.getBuyId();
        this.backpackId = tradingShopRecord.getBackpackId();
        this.recordId = tradingShopRecord.getRecordId();
        this.tradingShopId = tradingShopRecord.getTradingShopId();
        this.userId = tradingShopRecord.getUserId();
        this.createTime = tradingShopRecord.getCreateTime();
    }

    public String getBackpackId() {
        return backpackId;
    }

    public void setBackpackId(String backpackId) {
        this.backpackId = backpackId;
    }

    public String getBuyId() {
        return buyId;
    }

    public void setBuyId(String buyId) {
        this.buyId = buyId;
    }

    public String getTradingShopId() {
        return tradingShopId;
    }

    public void setTradingShopId(String tradingShopId) {
        this.tradingShopId = tradingShopId;
    }

    public long getIngot() {
        return ingot;
    }

    public void setIngot(long ingot) {
        this.ingot = ingot;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getRecordId() {
        return recordId;
    }

    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "TradingShopRecordVO{" +
                "recordId='" + recordId + '\'' +
                ", tradingShopId='" + tradingShopId + '\'' +
                ", userId='" + userId + '\'' +
                ", ingot=" + ingot +
                ", createTime=" + createTime +
                '}';
    }
}
